package cn.cuiliangpeng.org.domain;

import java.time.LocalDate;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.cuiliangpeng.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 实体类：
 */
@Data
public class Shop extends BaseDomain{

    /**
     * 店铺名称
     */
    @NotEmpty
    @Excel(name = "店铺名称" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    /**
     * 店铺座机
     */
    @NotEmpty
    @Excel(name = "店铺座机" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    /**
     * 入驻时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @Excel(name = "店铺创建时间" ,orderNum = "3", width = 30,exportFormat ="yyyy-MM-dd", isImportField = "true_st")
    private Date registerTime=new Date();
    /**
     * 店铺状态：1待审核，2审核通过待激活，3激活成功，4驳回
     */
    @Excel(name = "店铺状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state=0;
    /**
     * 店铺地址
     */
    @NotEmpty
    @Excel(name = "店铺地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    /**
     * 店铺logo
     */
    private String logo;
    /**
     * 店铺管理员ID
     */
    private Long adminId;

    private Employee admin;

}
